<?php

define('NAUTHENTICATE_STATUS_SUCCESS',1);
define('NAUTHENTICATE_STATUS_CANCEL',2);
define('NAUTHENTICATE_STATUS_FAILURE',4);

class NAuthentication {


function __construct(){}
function & getInstance()
	{
		static $instances;

		if (!isset ($instances)) {
			$instances = array ();
		}

		if (empty ($instances[0])) {
			$instances[0] = new NAuthentication();
		}

		return $instances[0];
	}
function authenticate(){

$response = new NAuthenticationResponse();
$response->status=NAUTHENTICATE_STATUS_SUCCESS;
}

}

class NAuthenticationResponse{

function __construct(){}
}
?>
